home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 04 Christian / nap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-15  |  610 b   |  49 lines

  1.  
  2.  
  3. #ifndef _NAP_H_
  4. #define _NAP_H_
  5.  
  6. #include "ieexec.h"
  7.  
  8. class Character;
  9.  
  10. class Nap : public IEExec
  11. {
  12.  
  13. public:
  14.  
  15.     Nap();
  16.  
  17.     void init   ( IEOwner * owner );
  18.     bool start  ();
  19.     bool update ();
  20.     bool finish ();
  21.  
  22.     IEOwner * getOwner ();
  23.  
  24.     const char * getName();
  25.  
  26.     enum NapStates
  27.     {
  28.         LieDown,
  29.         DownYawn,
  30.         Rest,
  31.         OpenEyes,
  32.         GetUp,
  33.         UpYawn,
  34.         Stretch,
  35.         Done
  36.     };
  37.  
  38. private:
  39.  
  40.     std::string m_name;
  41.     Character * m_owner;
  42.  
  43.     float     m_clock;
  44.  
  45.     float     m_timeSnore;
  46. };
  47.  
  48. #endif
  49.